package sdc.com.petscalendar.adapters;

import java.util.List;

import sdc.com.petscalendar.fragments.BaseFragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MFragmentPagerAdapter extends FragmentPagerAdapter {
	private List<BaseFragment> mFragments;

	public MFragmentPagerAdapter(FragmentManager fm,
			List<BaseFragment> fragments) {
		super(fm);
		mFragments = fragments;
	}

	@Override
	public BaseFragment getItem(int arg0) {
		return mFragments.get(arg0);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return mFragments.size();
	}

}
